package com.lh0811.forge.pserv.uacs.server.config.provider;

import com.alibaba.fastjson2.JSON;
import com.lh0811.forge.dependency.security.core.model.entity.SecurityAuthority;
import com.lh0811.forge.pserv.uacs.server.component.data_scope.provider.AbstractSysRuleValueProvider;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class GetSaleNameSysRuleValueProvider extends AbstractSysRuleValueProvider<String> {

    @Override
    public String getRuleValueByCurrentUser(SecurityAuthority securityAuthority) throws Exception {
        log.info("GetSaleNameSysRuleValueProvider securityAuthority = {}", JSON.toJSONString(securityAuthority));
        return "张三";
    }
}
